import request from '../utils/request'
const api_name = '/user'
export default {
    //后台用户登录
    login(username, password) {
        return request({
            url: `${api_name}/login`,
            method: 'post',
            data: {
                username,
                password
            }
        })
    },
    //获取用户信息
    getUserInfo() {
        return request({
            url: `${api_name}/info`,
            method: 'get',

        })
    }
}